﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_User : System.Web.UI.MasterPage
{
    protected void Page_Init(Object Sender, EventArgs e)
    {
        switch (Master.CurrentUserManagement.CurrentUser.Role)
        {
            case (int)UserManagement.Role.Admin:
                break;
            case (int)UserManagement.Role.ProjectLead:
                ltrAddUser.Visible = false;
                break;
            case (int)UserManagement.Role.Tester:
                ltrAddUser.Visible = false;
                ltrAssignUserToBug.Visible = false;
                ltrAssignUserToProject.Visible = false;
                break;
            case (int)UserManagement.Role.Developer:
                ltrAddUser.Visible = false;
                ltrAssignUserToBug.Visible = false;
                ltrAssignUserToProject.Visible = false;
                break;
            case (int)UserManagement.Role.Guest:
                ltrAddUser.Visible = false;
                ltrAssignUserToBug.Visible = false;
                ltrAssignUserToProject.Visible = false;
                ltrEditUser.Visible = false;
                break;
            default:
                break;
        }
    }
}